package com.cityeye.action;

import java.util.HashMap;
import java.util.Map;

import com.cityeye.dao.AbstractEntityDao;
import com.cityeye.dao.PatrolDao;
import com.cityeye.entity.Patrol;
import com.cityeye.util.QryKeys;

public class PatrolAction extends AbsListPageAction<Patrol> {

	/**
	 * Map of Session stored name:entity property name.
	 * 
	 * @return
	 */
	protected Map<String, String> getSessionQueries() {
		HashMap<String, String> queries = new HashMap<String, String>();
		queries.put(QryKeys.PATROL_DEPARTMENT, "department");
		return queries;
	}		
	
	protected AbstractEntityDao<Patrol> getEntityDao(){
		return new PatrolDao();
	}
}
